<!DOCTYPE html>
<html>
<!-- head -->
{include file="change/inner/head"}
<body>
<!---------------- 新闻中心 ------------------->

<!-- 页头 -->
{include file="Change/inner/header"}
<!-- jsfiles -->
{include file="Change/inner/jsfiles"}
{include file="common/page/dialog"}

<!-- 主体 -->
<div class="content container-fluid">
    <div class="row">
        <div class="col-md-2 left-section">
            <!-- 左导航菜单 -->
            {include file="Change/inner/leftBar"}
        </div>
        <div class="col-md-10 right-section">
            <!--内容区域-->
            <div style="display:flex;justify-content:space-between;align-items:center;padding:20px 20px;">
                <h3 style="margin:0px;">功能方法列表</h3>
                <div>
                    <button class="btn btn-primary btn-md add">新增</button>
                </div>
            </div>
            
            <div class="inner-section row">
                <div class="item table-responsive">
                    <table id="list-table" class="table table-striped table-hover table-bordered table-base">
                        <tbody>
                            <tr>
                                <th class="col-1">序号</th>
                                <th class="col-2">上级模块</th>
                                <th class="col-3">方法名称</th>
                                <th class="col-4">是否显示</th>
                                <th class="col-4">操作</th>
                            </tr>

                            <!--顶级菜单-->
                            {foreach name = "list" item = "val" key="key"}
                            <tr>
                                <td>{$key+1}</td>
                                <td>{$val.name}</td>
                                <td>{$val.action_name}</td>
                                <td>
                                    {if $val.is_show ==1}
                                    <font color="green">显示</font>
                                    {else}
                                    <font color="#999">隐藏</font>
                                    {/if}
                                </td>
                                <td>
                                    {if $val.is_show ==1}
                                    <a href="javascript:;" class="btn btn-default btn-xs dealShow" data-id="{$val.id}" data-show="0">隐藏</a>
                                    {else}
                                    <a href="javascript:;" class="btn btn-success btn-xs dealShow" data-id="{$val.id}" data-show="1">显示</a>
                                    {/if}
                                </td>
                            </tr>
                            {/foreach}
                        </tbody>
                    </table>     
                </div>
                {$list->render()}
            </div>
        </div>
    </div>
</div>

<!-- 页脚 -->
<script type="text/javascript" src="__app__/admin/view/Change/actionList/actionList.js"></script>
</body>
</html>